package com.example.coffee.items;

import java.util.List;

public class OrderItem {
    // 订单中的餐品
    private CaffeeItem caffeeItem;
    // 订单总价
    private String totalPriec;
    // 订单id
    private String orderId;
    // 订单状态
    private String status;
    // 订单创建时间
    private String createTime;
    // 商家电话
    private String phoneNumber;
    // 自定义构造方法
    public OrderItem(CaffeeItem caffeeItem, String totalPriec, String orderId, String status, String createTime, String phoneNumber) {
        this.caffeeItem = caffeeItem;
        this.totalPriec = totalPriec;
        this.orderId = orderId;
        this.status = status;
        this.createTime = createTime;
        this.phoneNumber = phoneNumber;
    }
    // 对应的getter方法
    public CaffeeItem getCaffeeItem() {
        return caffeeItem;
    }

    public String getTotalPriec() {
        return totalPriec;
    }

    public String getOrderId() {
        return orderId;
    }

    public String getStatus() {
        return status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }
}
